#!/usr/bin/env python
# -*- coding: utf-8 -*-

from string import *

class Mm:
	"""Rodic datovych zdroju"""
	data = None
	status = {}
	
	def __init__(self):
		pass
	
	def parse(self, query):
		"""Udela seznam z 'query'. Separatorem je ';' """
		p_q = split(query, ';')
		return p_q

	def connect(self):
		pass
	
	def close(self):
		pass
	
	def read(self):
		pass
	
	def get_items(self):
		"""Vraci hlavicku tabulky."""
		self.connect()
		return self.read()[0]	
	
	def get_status(self):
		return self.status
	
	def set_status(self, x):
		self.status = x

	def execute(self, x):
		pass

	def get_data(self):
		self.connect()
		self.read()
		self.close()
		return self.data
	
	
# TESTY
#m1 = Mm()
#m2 = Mm()
#print m1.status
#print m2.parse("qwe;;wer;a")
#print m2.status